//
//  ZBShareMenuView.h
//  MessageDisplay
//
//  Created by zhoubin@moshi on 14-5-13.
//  Copyright (c) 2014年 Crius_ZB. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PhotoItemView.h"
#import "MWPhotoBrowser.h"
#import <AssetsLibrary/AssetsLibrary.h> 


@protocol PhotoListViewDelegate <NSObject>


@optional

- (void)addPicker:(UIImagePickerController *)picker;

- (void)addUIImagePicker:(UINavigationController *)pickerNavigationController;


- (void)photoContentChangeWithNewSize:(CGSize)size oldSize:(CGSize)oldSize;

@end

@interface PhotoListView : UIView <UIActionSheetDelegate,
        UIImagePickerControllerDelegate,
        UIScrollViewDelegate,
        PhotoItemViewDelegate, MWPhotoBrowserDelegate, UINavigationControllerDelegate>

@property(nonatomic,assign)int maxSelectedCount;
@property(nonatomic, assign) BOOL isEditing;

@property(nonatomic, strong) UIScrollView *scrollView;

@property(nonatomic, strong) NSMutableArray *selectedPhotoMArray;

@property(nonatomic, strong) NSMutableArray *itemViewMArray;

@property(nonatomic, assign) id <PhotoListViewDelegate> delegate;

@property(nonatomic, strong) NSMutableArray *photos;

@property(nonatomic, strong) NSMutableArray *thumbs;

@property(nonatomic, strong) NSMutableArray *selections;

@property(nonatomic, strong) NSMutableArray *assets;

@property(nonatomic, strong) ALAssetsLibrary *assetLibrary;

- (void)reloadDataWithImage:(UIImage *)image;

- (void)reloadData;

@end
